Skip to main content

mobileStorePurchaseError

Type​

function

Summary​

Get more detailed information about errors in the purchase request.

Syntax​

mobileStorePurchaseError (purchaseID)

Description​

Use the mobileStorePurchaseError function to get more detailed information about errors in the purchase request.

The function mobileStorePurchaseError is used to get more detailed information about errors in the purchase request.

note

This function should be called in purchaseStateUpdate message when pState = "error".

Examples​

on purchaseStateUpdate pPurchaseID, pProductID, pState
switch pState
case "paymentReceived"
...
case "error"
answer "Error occurred during purchase handling:" \
&& mobilePurchaseError(pPurchaseID)
mobileStoreDisablePurchaseUpdates

case "invalidSKU"
...
case "alreadyEntitled"
...
case "restored"
...
case "cancelled"
...
end switch
end purchaseStateUpdate

command: mobileStoreRestorePurchases, mobileStoreDisablePurchaseUpdates, mobileStoreEnablePurchaseUpdates, mobileStoreRequestProductDetails, mobileStoreMakePurchase, mobileStoreSetProductType, mobileStoreConsumePurchase, mobileStoreConfirmPurchase, mobileStoreVerifyPurchase

function: mobileStoreCanMakePurchase, mobileStorePurchasedProducts, mobileStoreProductProperty

message: purchaseStateUpdate, productRequestError, productDetailsReceived

Compatibility and Support​

Introduced

LiveCode 6.7

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?